﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 检验批实体.
/// </summary>
[SugarTable("qms_busi_inspectionlot", "检验批")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiInspectionlotEntity : CLDEntityBase
{

    /// <summary>
    /// 检验批号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "检验批号")]
    public string Code { get; set; }

    /// <summary>
    /// 检验日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Date", ColumnDescription = "检验日期")]
    public DateTime? Date { get; set; }

    /// <summary>
    /// 报检类型(字典项：业务类型:默认来料检).
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "报检类型(字典项：业务类型:默认来料检)")]
    public string Type { get; set; }

    /// <summary>
    /// 物料.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 供应商.
    /// </summary>
    [SugarColumn(ColumnName = "F_Supplier", ColumnDescription = "供应商")]
    public string Supplier { get; set; }

    /// <summary>
    /// 来料数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_IncomingQty", ColumnDescription = "来料数量")]
    public int? IncomingQty { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNumber", ColumnDescription = "批次号")]
    public string BatchNumber { get; set; }

    /// <summary>
    /// 检验员.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeCode", ColumnDescription = "检验员")]
    public string EmployeeCode { get; set; }

    /// <summary>
    /// 检验员名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeName", ColumnDescription = "检验员名称")]
    public string EmployeeName { get; set; }

    /// <summary>
    /// 采购订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "采购订单号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// 检验类型(字典项).
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectType", ColumnDescription = "检验类型(字典项)")]
    public string InspectType { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark", ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 状态：0 未检验  1检验中 2检验完成 3已过帐.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态：0 未检验  1检验中 2检验完成 3已过帐")]
    public int? Status { get; set; }

    /// <summary>
    /// OK NG.
    /// </summary>
    [SugarColumn(ColumnName = "F_JudgeStatus", ColumnDescription = "OK NG")]
    public string JudgeStatus { get; set; }

    /// <summary>
    /// 0 不合格 1合格.
    /// </summary>
    [SugarColumn(ColumnName = "F_UdNo", ColumnDescription = "0 不合格 1合格")]
    public int? UdNo { get; set; }

    /// <summary>
    /// 使用决策子项.
    /// </summary>
    [SugarColumn(ColumnName = "F_Decision", ColumnDescription = "使用决策子项")]
    public string Decision { get; set; }

    /// <summary>
    /// 使用决策子项名字.
    /// </summary>
    [SugarColumn(ColumnName = "F_DecisionName", ColumnDescription = "使用决策子项名字")]
    public string DecisionName { get; set; }

    /// <summary>
    /// 破坏性数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_DestructivenessQty", ColumnDescription = "破坏性数量")]
    public int? DestructivenessQty { get; set; }

    /// <summary>
    /// 接收数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveQty", ColumnDescription = "接收数量")]
    public int? ReceiveQty { get; set; }

    /// <summary>
    /// 使用决策备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_DecisionDesc", ColumnDescription = "使用决策备注")]
    public string DecisionDesc { get; set; }

    /// <summary>
    /// 0 未逾期 1 已逾期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Overdue", ColumnDescription = "0 未逾期 1 已逾期")]
    public int? Overdue { get; set; }

    /// <summary>
    /// 开始时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_StartTime", ColumnDescription = "开始时间")]
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_EndTime", ColumnDescription = "结束时间")]
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 参数.
    /// </summary>
    [SugarColumn(ColumnName = "F_Parameter", ColumnDescription = "参数")]
    public object Parameter { get; set; }

    /// <summary>
    /// 规则编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_RuleCode", ColumnDescription = "规则编码")]
    public string RuleCode { get; set; }

    /// <summary>
    /// 规则描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_RuleDesc", ColumnDescription = "规则描述")]
    public string RuleDesc { get; set; }

    /// <summary>
    /// 阶段.
    /// </summary>
    [SugarColumn(ColumnName = "F_RuleStage", ColumnDescription = "阶段")]
    public string RuleStage { get; set; }

    /// <summary>
    /// 阶段描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_RuleStageDesc", ColumnDescription = "阶段描述")]
    public string RuleStageDesc { get; set; }

    /// <summary>
    /// 是否免检 N否 Y是.
    /// </summary>
    [SugarColumn(ColumnName = "F_Exempt", ColumnDescription = "是否免检 N否 Y是")]
    public string Exempt { get; set; }

    /// <summary>
    /// 物料文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialFile", ColumnDescription = "物料文件信息")]
    public string MaterialFile { get; set; }

    /// <summary>
    /// 检卡文件信息.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckCardFile", ColumnDescription = "检卡文件信息")]
    public string CheckCardFile { get; set; }


}